package com.helloworld.demo;

public class StackOverflowTest {

    public static int count = 0;

    public static void redo(){
        count++;
        redo();
    }

    public static void main(String[] args) {
        try{
            count++;
            redo();
        }catch (Throwable e){
            e.printStackTrace();
            System.out.println("count= " + count);
        }
    }
}
